package com.jungle.mvvm.sample.ui.detail;

import android.os.Bundle;

import com.jungle.mvvm.base.BaseActivity;
import com.jungle.mvvm.sample.BR;
import com.jungle.mvvm.sample.R;
import com.jungle.mvvm.sample.databinding.ActivityDetailBinding;

/**
 * @ClassName DetailActivity
 * @Description 详细页面
 * @Author Daniel
 * @Version V1.0.0
 */
public class DetailActivity extends BaseActivity<ActivityDetailBinding, DetailViewModel> {
    private String mUrl;
    private String mTitle;

    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_detail;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }


    @Override
    public void initParam() {
        Bundle bundle = getIntent().getExtras();
        if (bundle != null) {
            mUrl = bundle.getString("url");
            mTitle = bundle.getString("title");
        }
    }
}
